<?php
/**
 * // +----------------------------------------------------------------------
 * //            -------------------------
 * //           /   / ------------------\  \
 * //                                          \  \
 * //                                           /  /
 * //          /  /  ------------------- /  /
 * //        /  /  ----------------------
 * //      /  /
 * //      \  \
 * //        \  \  ------------------ /  /
 * //          \  \--------------------/
 * // +----------------------------------------------------------------------
 * // | Copyright (c) 2016 Sage  All rights reserved.
 * // +----------------------------------------------------------------------
 * // | Author: Sage
 * // +----------------------------------------------------------------------
 *
 */

/**
 * Created by PhpStorm.
 * User: Sage
 * Date: 2017/9/22
 * Time: 15:30
 */
namespace KysbsUtils\Traits;

trait ResultTrait {
    static private $error;
    /**
     * 记录错误信息
     * @param $error
     */
    function setError($error){
        self::$error=$error;
    }
    /**
     * 获取错误信息
     * @return string
     */
    function getError(){
        return self::$error;
    }
}